﻿@using KMF.WebUI.Areas.KMFadmin.Models
@using KMF.WebUI.Areas.KMFadmin.CustomHelpers
@model KMF.Common.SizeDto
@{
    ViewBag.Title = "Add";
    Layout = "~/Areas/KMFadmin/Views/Shared/_layout.cshtml";
}

@section LeftMenu
{
    <ul id="p-quick-menu" class="quick-menu">
        <li class="qmn-info-pro">Thông tin size</li>
    </ul>
}
<link href="@Url.Content("~/Areas/KMFadmin/Scripts/colorPicker/css/colorpicker.css")" rel="stylesheet" />
<nav>
    <div id="jCrumbs" class="breadCrumb module">
        <ul>
            <li><a href="@Url.Action("Index", "AdminHome")"><i class="bootstrap icon-home"></i></a></li>
            <li><a href="javascript:void(0)">Sản phẩm</a> </li>
            <li><a href="@Url.Action("Add", "AdminSize")">Thêm size</a> </li>
        </ul>
    </div>
</nav>
<div class="toolBox">
    @Html.ToolBox(new List<object> { new Add { ClassCss = "Add", ActionName = "Javascript:void(0)" }, new Back { ClassCss = "Back", ActionName = @Url.Action("Index", "AdminSize") } })
</div>
@using (Html.BeginForm("Add", "AdminSize", FormMethod.Post ))
{
    <div class="box-Info">
        <div class="Info-header">
            <span>Thêm mới Size </span>
        </div>
    
        <div class="Info-body ib-infopro">
        
            <table cellpadding="0" cellspacing="0" width="100%" border="0" class="table-info">
                <tr>
                    <td class="tInfoLeft">
                        Tên size
                    </td>
                    <td class="tInfoRight">
                        @Html.TextBoxFor(m => m.SizeName)
                    </td>
                </tr>
                <tr>
                    <td class="tInfoLeft">
                        Mã size
                    </td>
                    <td class="tInfoRight">
                        @Html.TextBoxFor(m => m.Code, new { id = "colorSelector" })
                        @Html.ValidationMessageFor(m => m.Code)
                    </td>
                </tr>
                <tr>
                    <td class="tInfoLeft">
                        Hiển thị
                    </td>
                    <td class="tInfoRight">
                        @Html.CheckBoxFor(m => m.Active, new { @checked = "checked"})
                    </td>
                </tr>
            </table>
        
        </div>
    </div>
}
@section scripts
{
    <script src="~/Areas/KMFadmin/Scripts/jquery.validate.min.js"></script>
    <script src="~/Areas/KMFadmin/Scripts/jquery.validate.unobtrusive.min.js"></script>
    <script type="text/javascript">
        SubmitFormUseToolBox($('#Toolbox li.Add a'), $('form'));
    </script>
}
